﻿using System;
using System.Collections.Generic;
using System.Text;

namespace InsertCodePlugin.CSharpFormat
{
    class CoffeeScriptFormat:CodeFormat
    {
        #region Overrides of CodeFormat

        protected override string Keywords
        {
            get { return @"true false null this new delete typeof in instanceof return throw break continue debugger if else switch for while do try catch finally class extends super undefined then unless until loop of by when and or is isnt not yes no on off case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf implements interface package private protected public static yield arguments eval"; }
        }

        protected override string StringRegEx
        {
            get { return @"@?""""|@?"".*?(?!\\).""|''|'.*?(?!\\).'"; }
        }

        protected override string CommentRegEx
        {
            get { return @"#.*?(?=\r|\n)"; }
        }

        #endregion
    }
}
